package io.renren.dao;

import io.renren.entity.TeamCountDto;
import io.renren.entity.TeamEntity;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * 推广团队表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-04-14 14:11:21
 */
public interface TeamDao extends BaseMapper<TeamEntity> {
	/**
	 * 根据ID统计当前会员的账务信息
	 * 
	 * @param mobile
	 * @return
	 */
	TeamCountDto selectAccountingByMemberId(@Param("memberId") Long memberId, @Param("startDate") String startDate, @Param("endDate") String endDate);

	/**
	 * 统计团队情况
	 * 
	 * @param memberId
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	TeamCountDto countTeam(@Param("memberId") Long memberId, @Param("startDate") String startDate, @Param("endDate") String endDate);

	/**
	 * 团队发包总量
	 * 
	 * @param memberId
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	Double teamSendPacket(@Param("memberId") Long memberId, @Param("startDate") String startDate, @Param("endDate") String endDate);
}
